{% extends "::base.html.twig" %}
{% block title %}{{ parent() }} - Admin{% endblock %}
{% block titre %}{{ parent() }} Type de groupe{% endblock %}
{% block body %}
<div class="col_6">
    <table class="record_properties">
        <tbody>
            <tr>
                <th>Nom</th>
                <td>{{ entity.name }}</td>
            </tr>
        </tbody>
    </table>
    <table>
    {% for att in entity.getAttributs()  %}
        <tr>
            <td>{{ att.getLibelle() }} de type {{ att.getType()}}</td>
        </tr>
    {% else %}
        <tr>
            <td>Pas d'attribut</td>
        </tr>
    {% endfor %}
    </table>

    <table class="record_actions">
        <tr>
            <td><a href="{{ path('page') }}" class="btn medium blue">
                <span class="icon small white" data-icon=":"></span>Retour
            </a></td>
            <td><a href="{{ path('page_edit', { 'id': entity.id }) }}" class="btn medium blue">
                <span class="icon small white" data-icon="7"></span>Modifier
            </a></td>
        </tr>
    </table>
</div>
{% endblock body %}